<template>
    <div>
        <el-divider content-position="left">v-longpress 长按</el-divider>
        <el-button v-longpress="longpress">长按</el-button>
    </div>
</template>

<script>
import {Message} from 'element-ui'
export default {
    methods: {
        longpress() {
            Message.success('长按指令生效')
        }
    }
}
</script>